// 表头定义
export const columns = [
  {type: 'index', label: '序号', width: 60},
  {prop: 'promptMessage', label: '发布消息', width: 180},
  {width: 150, prop: 'code', label: '邀请码'},
  {width: 150, prop: 'releaseStartAt', label: '上线开始时间'},
  {width: 150, prop: 'releaseEndAt', label: '上线结束时间'},
  {width: 150, prop: 'status', label: '上线状态'},
  {prop: 'remark', label: '备注', minWidth: 160},
  {prop: 'operation', label: '操作', fixed: 'right', width: 100}
]
export const onlineState = {
  0: '无效',
  1: '有效'
}
export const statusArr = [
  {
    value: 0,
    label: '无效'
  },
  {
    value: 1,
    label: '有效'
  }
]
export const informationRules = {
  code: [{required: true, message: '请输入有效期', trigger: 'blur'}],
  releaseStartTimeAt: [
    {required: true, message: '请选择上线开始时间', trigger: 'change'}
  ],
  releaseEndTimeAt: [
    {required: true, message: '请选择上线结束时间', trigger: 'change'}
  ],
  status: [{required: true, message: '请选择状态', trigger: 'change'}],
  remark: [{required: true, message: '请添加备注', trigger: 'blur'}],
  promptMessage: [{required: true, message: '请输入发布消息', trigger: 'blur'}]
}
